package com.bjpowernode.boss.mvc.models.form.user;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UserEditForm {

    private String id;

    @NotNull(message="缺少登录名称")
    private String loginName;

    @NotNull(message="缺少联系方式")
    @Pattern(regexp="^1[3-9]\\d{9}$",message = "手机号格式错误")
    private String phone;

    @NotNull(message="缺少平台简称")
    private String shopName;

    @NotNull(message="缺少经营范围")
    private String shopScope;

    @NotNull(message="缺少联系邮箱")
    @Email(message = "邮箱格式错误")
    private String userEmail;
}
